x11: When querying window size, ask the wrapper, not ourselves
authorBenjamin Otte <otte@redhat.com>
Thu, 9 Sep 2010 00:14:19 +0000 (02:14 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:41 +0000 (15:11 +0200)
gdk/x11/gdkdrawable-x11.c

index c8a38f4d875993efb83371cf202dd465dc4af492..433add41b284a230c441e85b5fae71f98bf4142d 100644 (file)
@@ -97,7 +97,7 @@ _gdk_x11_drawable_update_size (GdkDrawable *drawable)
     {
       int width, height;
       
-      gdk_drawable_get_size (drawable, &width, &height);
+      gdk_drawable_get_size (impl->wrapper, &width, &height);
       cairo_xlib_surface_set_size (impl->cairo_surface, width, height);
     }
 }